package Demo_Old.First;


import Demo_Old.second.Mother;

public  class Father extends Mother {

    public int age=100;
    public  int s;
    private int d;

    public Father(){
        super(60);
        System.out.println("父类");
    }
    public Father(int age){
        this.age=age;
    }

    public  Father test( Mother a){
//        this.age=50;
//        this.s=20;
        System.out.println("祖父类test");
        return new Father();
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public void setAge(int age) {
        this.age = age;
    }


    public static void mytest(){//静态方法可以被继承但是不能被重写
        System.out.println("father");
//        InnerClass innerClass=new InnerClass();
    }
    private InnerClass innerClass=new InnerClass();

     class InnerClass{
        private int innerage;
        int gender;

        public void test(int a){
            System.out.println(a);
        }
    }

    public void show(int a){
         int c=20;
         class InnerClass{
             public void test(){
                 System.out.println(c);
             }
         }
         new InnerClass().test();
    }
    static interface Innerinterface{

          int o=10;
    }



    public static void main(String[] args) {
//       Mother mother=new Father();
//        mother.mytest();
        int a=10;
       Father father=new Father();
       father.mytest();
//       father.show(a);
    }

}


